/****************************************************
	文件：DoTrunkSlamBev.cs
	作者：HuskyT
	邮箱：1005240602@qq.com
	日期：2020/8/26 20:20:33
	功能：用树干攻击 行为
*****************************************************/

using System;
using UnityEngine;

namespace AIFramework.HTN
{
    public class DoTrunkSlamBev : BevBase
    {
        protected EntityBase mTarget;

        public DoTrunkSlamBev(EntityBase self, Action<WorldState> initFunc = default) : base(self, initFunc)
        {
        }

        public override void Execute()
        {
            base.Execute();
            mTarget = mSelf.Brain.Opponent;
            Debug.LogFormat("{0} 用树干攻击 {1}", mSelf.Name, mTarget.Name);
        }
    }
}
